SuperStrict

Import arm.box2d

Local vector:b2Vec2 = New b2Vec2

Print "New: " + vector.X() + " | " + vector.Y()

Local vector2:b2Vec2 = Vec2(30.0, 40.0)

Print "Vec2: " + vector2.X() + " | " + vector2.Y()

vector.Copy(vector2)

Print "Copy: " + vector.X() + " | " + vector.Y()

vector2.Divide(2.0)

Print "Divide: " + vector2.GetX() + " | " + vector2.GetY()

vector2.Multiply(2.0)

Print "Multiply: " + vector2.X() + " | " + vector2.Y()

Print "Length: " + vector2.Length()

Print "LengthSquared: " + vector2.LengthSquared()

vector.Add(vector2)

Print "Add: " + vector.X() + " | " + vector.Y()

vector.Subtract(vector2)

Print "Subtract: " + vector.X() + " | " + vector.Y()

Local vector3:b2Vec2 = vector.AddNew(vector2)

Print "AddNew: " + vector3.X() + " | " + vector3.Y()

vector3 = vector3.SubtractNew(vector2)

Print "SubtractNew: " + vector3.X() + " | " + vector3.Y()

Print "IsValid: " + vector3.IsValid()

Print "Skew: " + vector3.Skew().X() + " | " + vector3.Skew().Y()

Print "Normalize: " + vector3.Normalize()
Print "          [" + vector3.X() + " | " + vector3.Y() + "]"